package com.realestate.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the brtb_account database table.
 * 
 */
@Entity
@Table(name="brtb_account")
public class BrtbAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private Date makeDate;

	private String password;

	private String recordStatus;

	private String username;

	private Set<BrtbAccountRole> brtbAccountRoles;

    public BrtbAccount() {
    }

    @Id
	@SequenceGenerator(name="BRSQ_ACCOUNT" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BRSQ_ACCOUNT")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Temporal( TemporalType.TIME)
	@Column(name="make_date")
	public Date getMakeDate() {
		return this.makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}

	
	@Column(name="password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name="record_status")
	public String getRecordStatus() {
		return this.recordStatus;
	}

	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}

	@Column(name="username")
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@OneToMany(mappedBy="brtbAccount")
	public Set<BrtbAccountRole> getBrtbAccountRoles() {
		return this.brtbAccountRoles;
	}

	public void setBrtbAccountRoles(Set<BrtbAccountRole> brtbAccountRoles) {
		this.brtbAccountRoles = brtbAccountRoles;
	}
	
}